Skip to content

fix: free disk space in assemble-and-bake - #569

Merged
tombrooks248 merged 1 commit into
mainfrom
fix/free-disk-space-in-assemble-and-bake
Jun 29, 2026
Merged

fix: free disk space in assemble-and-bake#569
tombrooks248 merged 1 commit into
mainfrom
fix/free-disk-space-in-assemble-and-bake

Conversation

@tombrooks248

@tombrooks248 tombrooks248 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Free up disk space while building the listed-building dataset so it stops crashing.

Add a flag to the tests so that this caching doesn't break the create_dataset test.

Why

The assemble-and-bake task writes a lot of temporary data to disk, which is capped at 200GB. For listed-building it now fills up completely and crashes while building the sqlite file.

This change deletes some temporary files we've already finished with, freeing up space for the rest of the build to complete.

Also fixes a small existing bug in close_conn that referenced a duckdb_file which should be duckdb_path — it wasn't hit before because nothing called it, but this change does.

Related Tickets & Documents

QA Instructions, Screenshots, Recordings

I have run this in DEV and it ran fine.

It only saved 0.7GB of data which extrapolated to PROD would result in a 8GB saving out of a 200GB limit so possibly not enough to solve the problem, but worth trying.

Added/updated tests?

We encourage you to keep the code coverage percentage at 80% and above. Please refer to the Digital Land Testing Guidance for more information.

  • Yes
  • No, and this is why: please replace this line with details on why tests
    have not been included
  • I need help with writing tests

[optional] Are there any post deployment tasks we need to perform?

[optional] Are there any dependencies on other PRs or Work?

@tombrooks248
tombrooks248 merged commit b326bf6 into main Jun 29, 2026
5 checks passed
@tombrooks248
tombrooks248 deleted the fix/free-disk-space-in-assemble-and-bake branch June 29, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants